import request from '@/utils/request'

// 查询套餐配置列表
export function listBanner(query) {
    return request({
        url: '/system/banner/list',
        method: 'get',
        params: query
    })
}

// 新增套餐信息
export function addBanner(data) {
    return request({
        url: '/system/banner',
        method: 'post',
        data: data
    })
}

// 修改套餐配置
export function updateBanner(data) {
    return request({
        url: `/system/banner/`,
        method: 'put',
        data: data
    })
}

// 获取套餐配置详细信息
export function getBanner(id) {
    return request({
        url: '/system/banner/' + id,
        method: 'get'
    })
}

// 删除套餐配置
export function delBanner(id) {
    return request({
        url: '/system/banner/' + id,
        method: 'delete'
    })
}
